//
//  DYGlobal.h
//  HBuilder
//
//  Created by 黄德玉 on 2019/11/2.
//  Copyright © 2019 DCloud. All rights reserved.
//

#import <Foundation/Foundation.h>
// 判断是否是刘海屏
#define YG_IS_iPhoneX ([DYGlobal isNotchScreen])
// 状态栏高度
#define YG_STATUS_BAR_HEIGHT (YG_IS_iPhoneX ? 44.f : 20.f)
// 导航栏高度
#define YG_NAVIGATION_BAR_HEIGHT (YG_IS_iPhoneX ? 88.f : 64.f)
// tabBar高度
#define YG_TAB_BAR_HEIGHT (YG_IS_iPhoneX ? (49.f+34.f) : 49.f)
// home indicator
#define YG_HOME_INDICATOR_HEIGHT (YG_IS_iPhoneX ? 34.f : 0.f)


#define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

NS_ASSUME_NONNULL_BEGIN

@interface DYGlobal : NSObject

+ (BOOL)isNotchScreen;


@end

NS_ASSUME_NONNULL_END
